<?php
class language {

    private $language = "Vietnam";

    function __construct($lang) {
        $this->language = $lang;
        $this->CreateNewSessionLang();
        $this->IncludeLangChoose();
    }

    private function CreateNewSessionLang() {
        $_SESSION['language'] = $this->language;
    }

    private function IncludeLangChoose() {
        switch ($this->language) {
            case 'Vietnam': include './php/lang/vietnam.php';
                break;
            case 'English': include './php/lang/enghlish.php';
                break;
        }
    }
}

?>
